/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.magri.modulo2.aula1.exercicio1;

import java.math.BigDecimal;

/**
 *
 * @author Magri
 */
public class CargoBean {
    private String cargo;
    private BigDecimal percentual;

    public CargoBean(String cargo, BigDecimal percentual) {
        this.cargo = cargo;
        this.percentual = percentual;
    }

    /**
     * @return the cargo
     */
    public String getCargo() {
        return cargo;
    }

    /**
     * @param cargo the cargo to set
     */
    public void setCargo(String cargo) {
        this.cargo = cargo;
    }

    /**
     * @return the percentual
     */
    public BigDecimal getPercentual() {
        return percentual;
    }

    /**
     * @param percentual the percentual to set
     */
    public void setPercentual(BigDecimal percentual) {
        this.percentual = percentual;
    }

    @Override
    public String toString() {
        return percentual.toString() + "% - " + cargo.toString();
    }
    
    
}
